package com.siwei.mes.mapper;

import com.siwei.mes.entity.OrderDetail;
import com.siwei.mes.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工单详情(OrderDetail)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-05 09:31:36
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<OrderDetail> getList(OrderDetail entity);

    /**
     * 根据工单id获取工单详情
     * @param orderId 工单id
     * @return
     */
    OrderDetail selectByOrderId(@Param("orderId") Long orderId);
}
